MY_INCLUDE = ../include ./include ../controller/include
vpath = %.h $(MY_INCLUDE)

all: out clean

out: $(patsubst %.c, %.o, $(wildcard *.c))
	ar -r ../release/libper.a $^

%.o: %.c
	gcc -o $@ -c $< -I $(MY_INCLUDE)

.PHONY:clean
clean:
	rm -rf *.o
